﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using StockStar.GatherData;
using System.IO;

namespace ClearCache
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("清除新股信息缓存！");
            string _url = "http://ccms.chinacache.com/index.jsp?user=emstock&pswd=Emstock123&ok=ok&dirs=http://down3.emstock.com.cn/xg/info/";
            string _content = OperMethod.GetPageByUrl(_url, "Gb2312");
            Console.WriteLine("清除新股公告缓存！");
            _url = "http://ccms.chinacache.com/index.jsp?user=emstock&pswd=Emstock123&ok=ok&dirs=http://down3.emstock.com.cn/xg/gg/";
            _content = OperMethod.GetPageByUrl(_url, "Gb2312");
            Console.WriteLine("清除新股布告栏！");
            _url = "http://ccms.chinacache.com/index.jsp?user=emstock&pswd=Emstock123&ok=ok&dirs=http://down3.emstock.com.cn/xg/";
            _content = OperMethod.GetPageByUrl(_url, "Gb2312");
            //Console.WriteLine("清除开般早知道！");
            //_url = "http://ccms.chinacache.com/index.jsp?user=emstock&pswd=Emstock123&ok=ok&dirs=http://down3.emstock.com.cn/kpzzd/";
            //_content = OperMethod.GetPageByUrl(_url, "Gb2312");
            //Console.WriteLine("清除缓存完成！");
        }
    }
}
